package com.itheima.mArrayList;

import java.util.ArrayList;

public class ArrayListDemo03 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();

        list.add("令狐冲");
        list.add("任盈盈");
        list.add("苗人凤");
        list.add("叮当猫");
        list.set(3, "ddd00");
        list.remove("ddd00");
        System.out.println("list = " + list);
        list.remove(2);
        System.out.println(list.get(0));
        System.out.println("list.size() = " + list.size());
    }
}
